package com.xpec.c4.db.cfg;
import java.sql.Types;

import org.hibernate.dialect.MySQL5InnoDBDialect;
/**
 * 让hibernate支持text类型数据
 * 指定数据库的引擎为InnoDB
 *@author GuoQi   E-mail: guoqi@xpec.com.cn
 *@version 创建时间: 2009-9-4下午07:04:51
 */
public class DialectForInkfish extends MySQL5InnoDBDialect {
     public DialectForInkfish() {
         super();
         registerHibernateType(Types.LONGVARCHAR, 65535, "text");
  //       registerColumnType( Types.CLOB, "text" );
         registerColumnType( Types.CLOB, 16777215, "mediumtext" );
         registerColumnType( Types.CLOB, 65535, "text" );
     }
}

